import request from '@/utils/request';

export async function reqTySymptomList(data: any, options?: any): Promise<any> {
  // return request('/api/sys/symptom/list', {
  // 	method: 'POST',
  // 	data,
  // 	...(options || {}),
  // });
  return request('/api/v1/symptom/listAllByGrade', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}

export async function reqSysTySymptomList(data: any, options?: any): Promise<any> {
  return request('/api/sys/symptom/list', {
  	method: 'POST',
  	data,
  	...(options || {}),
  });
}



export async function reqAddTySymptom(data: any, options?: any): Promise<any> {
  return request('/api/sys/symptom/create', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}

export async function reqUpdateTySymptom(data: any, options?: any): Promise<any> {
  return request('/api/sys/symptom/update', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}

export async function reqDeleteTySymptom(data: any, options?: any): Promise<any> {
  return request('/api/sys/symptom/delete', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}


